/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.operation.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 合成需求
 *
 * @author baogs
 * @date 2022-07-01 11:13:17
 */
@Data
@TableName("opt_compound_demand")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "合成需求")
public class CompoundDemand extends Model<CompoundDemand> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "id")
	private Long id;

	/**
	 * 标题
	 */
	@ApiModelProperty(value = "标题")
	private String title;

	/**
	 * 目标藏品
	 */
	@ApiModelProperty(value = "目标藏品")
	private Long targetSpuId;

	/**
	 * 目标藏品
	 */
	@ApiModelProperty(value = "目标藏品名称")
	private String targetSpuName;

	/**
	 * 目标藏品
	 */
	@ApiModelProperty(value = "目标藏品Token")
	private String targetSpuToken;

	/**
	 * 目标藏品
	 */
	@ApiModelProperty(value = "目标藏品图片")
	private String targetSpuImage;

	/**
	 * 计划合成数量
	 */
	@ApiModelProperty(value = "计划合成数量")
	private Integer plantAmount;

	/**
	 * 实际合成数量
	 */
	@ApiModelProperty(value = "实际合成数量")
	private Integer actualAmount;

	/**
	 * 是否发布
	 */
	@ApiModelProperty(value = "是否发布")
	private Boolean isPublished;

	/**
	 * 合成结束时间
	 */
	@ApiModelProperty(value = "合成开始时间")
	private LocalDateTime beginTime;

	/**
	 * 合成结束时间
	 */
	@ApiModelProperty(value = "合成结束时间")
	private LocalDateTime endTime;

	/**
	 * 创建人
	 */
	@ApiModelProperty(value = "创建人")
	private Long createBy;

	/**
	 * 修改人
	 */
	@ApiModelProperty(value = "修改人")
	private Long updateBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.UPDATE)
	@ApiModelProperty(value = "修改时间")
	private LocalDateTime updateTime;

	/**
	 * 删除标志
	 */
	@TableLogic(delval = "1", value = "0")
	@ApiModelProperty(value = "删除标志")
	private String delFlag;

	/**
	 * 合成说明
	 */
	@ApiModelProperty(value = "合成说明")
	private String description;

	/**
	 * 合成所需材料
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "合成所需材料")
	private List<CompoundResources> resourcesList;


}
